/**
 * 
 */
package com.googlecode.pcapj;


/**
 * 
 */
class CapturedImpl implements Captured{
	private TimeStamp timeStamp;
	private int length;
	private int caputuredLength;
	private Packet packet;

	
	/**
	 * @param timeStamp the timeStamp to set
	 */
	void setTimeStamp(TimeStamp timeStamp) {
		this.timeStamp = timeStamp;
	}

	/**
	 * @param length the length to set
	 */
	void setLength(int length) {
		this.length = length;
	}

	/**
	 * @param caputuredLength the caputuredLength to set
	 */
	void setCaputuredLength(int caputuredLength) {
		this.caputuredLength = caputuredLength;
	}

	/**
	 * @param packet the packet to set
	 */
	void setPacket(Packet packet) {
		this.packet = packet;
	}

	/* (non-Javadoc)
	 * @see com.googlecode.pcapj.Captured#getTimeStamp()
	 */
	public TimeStamp getTimeStamp() {
		return timeStamp;
	}

	/* (non-Javadoc)
	 * @see com.googlecode.pcapj.Captured#getCaputuredLength()
	 */
	public int getCaputuredLength() {
		return caputuredLength;
	}

	/* (non-Javadoc)
	 * @see com.googlecode.pcapj.Captured#getLength()
	 */
	public int getLength() {
		return length;
	}

	/* (non-Javadoc)
	 * @see com.googlecode.pcapj.Captured#getPacket()
	 */
	public Packet getPacket() {
		return packet;
	}
}
